package com.zzyl.config;

import com.zzyl.properties.JwtUtilProperties;
import com.zzyl.utils.JwtUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * jwtUtil配置类
 */
@Configuration
public class JwtUtilConfig {

    @Bean
    public JwtUtil getJwtUtilBean(JwtUtilProperties jwtUtilProperties) {
        return new JwtUtil(jwtUtilProperties.getSecretKey(), jwtUtilProperties.getDateOffset());
    }
}
